//
//  Config.h
//  萌捕头
//
//  Created by hb on 15/6/30.
//  Copyright (c) 2015年 amaoagou. All rights reserved.
//


#if 1
#define Debug() printf("%s %s %d\n",\
__FILE__,__func__,__LINE__);
#else
#define Debug()
#endif

#define NSLog(format, ...) do { \
fprintf(stderr, "<%s : %d> %s\n", \
[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], \
__LINE__, __func__); \
(NSLog)((format), ##__VA_ARGS__); \
fprintf(stderr, "-------\n"); \
} while (0)

#ifndef ____Config_h
#define ____Config_h

#define SCREEN_H   [[UIScreen mainScreen] bounds].size.height
#define SCREEN_W   [[UIScreen mainScreen] bounds].size.width

#define IOSVersion  [[UIDevice currentDevice] systemVersion]
#define IS_IOS7() ([[[UIDevice currentDevice]systemVersion] floatValue] >= 7)
#define IS_IOS8 ([[[UIDevice currentDevice]systemVersion] floatValue] >= 8)
#define MLString(str) NSLocalizedString(str, @"")
#define WinSize self.view.frame.size
#define WinHeight ((IS_4Inch())?568:480)
#define IS_4Inch() (([[UIScreen mainScreen] bounds].size.height == 568)? true:false)
#define WinTitleHeight (([[[UIDevice currentDevice]systemVersion] floatValue] >= 7)?20:0)
#define BAR_BOTTON_ITEM_FRAME CGRectMake(15, 15, 20, 20)
#define NAV_BAR_BOTTON_ITEM_BACK_STYLE [[UIButton alloc]initWithFrame:BAR_BOTTON_ITEM_FRAME]

#define NAV_BAR_BACK_IMAGE [UIImage imageNamed:@"global_back"]

#define ICON_SEX_FEMALE [UIImage imageNamed:@"icon_pet_sex_female"]
#define ICON_SEX_MALE [UIImage imageNamed:@"icon_pet_sex_male"]

#define kKeyBoardHeight 260.0f

#define kCONTENT_TEXT_COLOR [UIColor lightGrayColor]
#define kCONTENT_TEXT_FONT [UIFont systemFontOfSize:14]
#define kNAME_TEXT_COLOR [UIColor blueColor]
#define kNAME_TEXT_FONT [UIFont systemFontOfSize:15]

#endif
